<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Foo() { }
        var pro = Foo.prototype
        // 函数显示原型上有一个属性constructor指向了函数本身
        console.log(pro.constructor);
        console.log(pro.constructor === Foo);
        // constructor获取的name就是 打印展示的构建函数的name
        console.log(Foo.name, pro.constructor.name);

        [[1, 2, 3], [2, 3, 4]].flatMap(v => {
            for (const key of ['a', 'b', 'c']) {
            }
            console.log(v);
        })
    </script>
</body>

</html>